<%@ Page Language="C#" MasterPageFile="~/StandardLayout.master" AutoEventWireup="true"
	CodeFile="RssSubscriptionPage.aspx.cs" Inherits="RssSubscriptionPage" Title="RSS Feed Builder" %>

<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="Server">
	<asp:Label ID="titleLabel" runat="server" Height="17px" Text="RSS Feed Builder" Font-Bold="True"
		Font-Size="Large"></asp:Label><br />
	<hr />
	<br />
	<asp:HyperLink ID="feedUrlLink" runat="server">Access your feed using this hyperlink</asp:HyperLink><br />
	<br />
	<asp:Label ID="trackNewItemsLabel" runat="server" Text="Your feed includes the following number of new items from the site:   "></asp:Label>&nbsp;
	<asp:DropDownList ID="newItemsNumberDropDown" runat="server" OnSelectedIndexChanged="newItemsNumberDropDown_SelectedIndexChanged"
		AutoPostBack="true">
	</asp:DropDownList><br />
	<br />
	<hr />
	<br />
	<asp:Label ID="currentItemsLabel" runat="server" Height="17px" Text="Items currently in your feed:"></asp:Label><br />
	<br />
	<asp:GridView ID="currentItemsGridView" runat="server" AutoGenerateColumns="False">
		<Columns>
			<asp:BoundField HeaderText="Catalog Name" DataField="CatalogName" />
			<asp:BoundField HeaderText="Product ID" DataField="ProductID" />
			<asp:BoundField HeaderText="Type" DataField="Type" />
			<asp:HyperLinkField HeaderText="Details" DataNavigateUrlFields="CatalogName,ProductID"
				DataNavigateUrlFormatString="~/Products/{0}/PID-{1}.aspx" Text="More Info" />
			<asp:TemplateField HeaderText="Remove item">
				<ItemStyle HorizontalAlign="Center" />
				<HeaderStyle HorizontalAlign="Center" />
				<ItemTemplate>
					<asp:CheckBox ID="removeItemCheckBox" runat="server" />
				</ItemTemplate>
			</asp:TemplateField>
		</Columns>
	</asp:GridView>
	<br />
	<asp:Button ID="removeButton" runat="server" Text="Remove" OnClick="removeButton_Click" /><br />
	<br />
	<hr />
	<br />
	<asp:Label ID="addItemsLabel" runat="server" Text="Search for other products to add to your feed:"></asp:Label>
	<asp:TextBox ID="searchTextBox" runat="server"></asp:TextBox>
	<asp:Button ID="searchButton" runat="server" Text="Search" OnClick="searchButton_Click" /><br />
	<br />
	<asp:GridView ID="addItemsGridView" AutoGenerateColumns="false" runat="server">
		<Columns>
			<asp:BoundField HeaderText="Catalog Name" DataField="CatalogName" />
			<asp:BoundField HeaderText="Product ID" DataField="ProductID" />
			<asp:BoundField HeaderText="Product Name" DataField="DisplayName" />
			<asp:BoundField HeaderText="Product Description" DataField="Description" />
			<asp:HyperLinkField HeaderText="Details" DataNavigateUrlFields="CatalogName,ProductID"
				DataNavigateUrlFormatString="~/Products/{0}/PID-{1}.aspx" Text="More Info" />
			<asp:TemplateField HeaderText="Always include" AccessibleHeaderText="Always include this item in my feed.">
				<ItemStyle HorizontalAlign="Center" />
				<HeaderStyle HorizontalAlign="Center" />
				<ItemTemplate>
					<asp:CheckBox ID="trackItem" runat="server" />
				</ItemTemplate>
			</asp:TemplateField>
			<asp:TemplateField HeaderText="When on sale" AccessibleHeaderText="Include this item in my feed when it is on sale.">
				<ItemStyle HorizontalAlign="Center" />
				<HeaderStyle HorizontalAlign="Center" />
				<ItemTemplate>
					<asp:CheckBox ID="itemOnSale" runat="server" />
				</ItemTemplate>
			</asp:TemplateField>
			<asp:TemplateField HeaderText="When in stock" AccessibleHeaderText="Include this item in my feed when it is in stock.">
				<ItemStyle HorizontalAlign="Center" />
				<HeaderStyle HorizontalAlign="Center" />
				<ItemTemplate>
					<asp:CheckBox ID="itemInStock" runat="server" />
				</ItemTemplate>
			</asp:TemplateField>
		</Columns>
	</asp:GridView>
	<asp:Label ID="noResultsLabel" runat="server" Text="No Results were found. Please retry your search."
		Visible="False"></asp:Label><br />
	<asp:Button ID="addButton" runat="server" OnClick="addButton_Click" Text="Add" /><br />
</asp:Content>
